package com.tuyue.police.dao;

import com.tuyue.police.pojo.Device;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @Author: 王金海
 * @Description:
 * @Date: Created by Administrator on 2018/3/13.
 * @Modified By:
 */

public interface IDeviceDao extends JpaRepository<Device, Long>,JpaSpecificationExecutor<Device> {


    List<Device> findAllByDeviceEnterpriseId(Long enterpriseId);
}
